The Game Window


The game you create happens in a window (even when fullscreen), and this window has a number of properties, like position, size, whether it is fullscreen, etc... These details are normally set automatically for you based on the room size and view ports enabled, or from the Windows Tab of the Global Game Options but you can change them during the game using the functions listed on this page.

NOTE:These functions are for Windows, Ubuntu (Linux), MacOS and HTML5 target modules only and may not work on any other device.

The following image illustrates how all some of the most general windows functions relate and interact with each other:

The following functions exist to change and get game window properties:

  1. window_center
  2. window_handle
  3. window_get_caption
  4. window_get_colour
  5. window_get_fullscreen
  6. window_get_height
  7. window_get_width
  8. window_get_x
  9. window_get_y
  10. window_get_cursor
  11. window_get_visible_rects
  12. window_mouse_get_x
  13. window_mouse_get_y
  14. window_mouse_set
  15. window_set_caption
  16. window_set_colour
  17. window_set_fullscreen
  18. window_set_position
  19. window_set_size
  20. window_set_rectangle
  21. window_set_cursor
  22. window_set_min_width
  23. window_set_max_width
  24. window_set_min_height
  25. window_set_max_height
  26. window_has_focus
  27. window_device
  28. window_view_mouse_get_x
  29. window_view_mouse_get_y
  30. window_views_mouse_get_x
  31. window_views_mouse_get_y